package org.zerta.troops.utilities;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class SimpleXStreamWrapper {

	public static Object fromXML( String data ) {
		XStream xstream = new XStream(new DomDriver());
		return xstream.fromXML(data);
	}

	public static String toXML( Object object ) {
		XStream xstream = new XStream(new DomDriver());
		return xstream.toXML(object);
	}

}
